﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZYO;

namespace CaiPiao_2ColorBall
{
    class CaiPiaoIching
    {
        public CaiPiaoDataItem di;
        public ZYDateTime zyDate;
        public Runtime甲子[] jzReds;
        public Runtime甲子 jzBlue;

        public Runtime六十四卦[] guaReds;
        public Runtime六十四卦 guaBlue;

        public CaiPiaoIching(CaiPiaoDataItem di)
        {
            this.di = di;
            this.zyDate= new ZYDateTime(di.Date);
            this.jzReds= new Runtime甲子[6];
            this.guaReds = new Runtime六十四卦[6];
            for(int i=0;i<6;i++)
            {
                this.jzReds[i]=new Runtime甲子(di.RedNumbers[i]);
                this.guaReds[i] = new Runtime六十四卦(di.RedNumbers[i],0);
            }
            this.jzBlue=new Runtime甲子(di.BlueNumber);
            this.guaBlue = new Runtime六十四卦(di.BlueNumber, 0);
        }
    }
}
